class RenamePIdInContent < ActiveRecord::Migration
  def self.up
    rename_column :contents, :p_id, :parent_id
  end

  def self.down
    rename_column :contents, :parent_id, :p_id
  end
end
